Integrand size = 49, antiderivative size = 549 \[ \int \frac {(a+b \tan (e+f x))^{5/2} \left (A+B \tan (e+f x)+C \tan ^2(e+f x)\right )}{(c+d \tan (e+f x))^{5/2}} \, dx=-\frac {(a-i b)^{5/2} (i A+B-i C) \text {arctanh}\left (\frac {\sqrt {c-i d} \sqrt {a+b \tan (e+f x)}}{\sqrt {a-i b} \sqrt {c+d \tan (e+f x)}}\right )}{(c-i d)^{5/2} f}-\frac {(a+i b)^{5/2} (B-i (A-C)) \text {arctanh}\left (\frac {\sqrt {c+i d} \sqrt {a+b \tan (e+f x)}}{\sqrt {a+i b} \sqrt {c+d \tan (e+f x)}}\right )}{(c+i d)^{5/2} f}-\frac {b^{3/2} (5 b c C-2 b B d-5 a C d) \text {arctanh}\left (\frac {\sqrt {d} \sqrt {a+b \tan (e+f x)}}{\sqrt {b} \sqrt {c+d \tan (e+f x)}}\right )}{d^{7/2} f}-\frac {2 \left (c^2 C-B c d+A d^2\right ) (a+b \tan (e+f x))^{5/2}}{3 d \left (c^2+d^2\right ) f (c+d \tan (e+f x))^{3/2}}-\frac {2 \left (b \left (5 c^4 C-2 B c^3 d-c^2 (A-11 C) d^2-8 B c d^3+5 A d^4\right )+3 a d^2 \left (2 c (A-C) d-B \left (c^2-d^2\right )\right )\right ) (a+b \tan (e+f x))^{3/2}}{3 d^2 \left (c^2+d^2\right )^2 f \sqrt {c+d \tan (e+f x)}}+\frac {b \left (b \left (5 c^4 C-2 B c^3 d+10 c^2 C d^2-6 B c d^3+(4 A+C) d^4\right )+2 a d^2 \left (2 c (A-C) d-B \left (c^2-d^2\right )\right )\right ) \sqrt {a+b \tan (e+f x)} \sqrt {c+d \tan (e+f x)}}{d^3 \left (c^2+d^2\right )^2 f} \]
[Out]
Time = 12.40 (sec) , antiderivative size = 549, normalized size of antiderivative = 1.00, number of steps used = 15, number of rules used = 9, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.184, Rules used = {3726, 3728, 3736, 6857, 65, 223, 212, 95, 214} \[ \int \frac {(a+b \tan (e+f x))^{5/2} \left (A+B \tan (e+f x)+C \tan ^2(e+f x)\right )}{(c+d \tan (e+f x))^{5/2}} \, dx=-\frac {(a-i b)^{5/2} (i A+B-i C) \text {arctanh}\left (\frac {\sqrt {c-i d} \sqrt {a+b \tan (e+f x)}}{\sqrt {a-i b} \sqrt {c+d \tan (e+f x)}}\right )}{f (c-i d)^{5/2}}-\frac {(a+i b)^{5/2} (B-i (A-C)) \text {arctanh}\left (\frac {\sqrt {c+i d} \sqrt {a+b \tan (e+f x)}}{\sqrt {a+i b} \sqrt {c+d \tan (e+f x)}}\right )}{f (c+i d)^{5/2}}-\frac {2 \left (A d^2-B c d+c^2 C\right ) (a+b \tan (e+f x))^{5/2}}{3 d f \left (c^2+d^2\right ) (c+d \tan (e+f x))^{3/2}}+\frac {b \sqrt {a+b \tan (e+f x)} \sqrt {c+d \tan (e+f x)} \left (2 a d^2 \left (2 c d (A-C)-B \left (c^2-d^2\right )\right )+b \left (d^4 (4 A+C)-2 B c^3 d-6 B c d^3+5 c^4 C+10 c^2 C d^2\right )\right )}{d^3 f \left (c^2+d^2\right )^2}-\frac {2 (a+b \tan (e+f x))^{3/2} \left (3 a d^2 \left (2 c d (A-C)-B \left (c^2-d^2\right )\right )+b \left (-c^2 d^2 (A-11 C)+5 A d^4-2 B c^3 d-8 B c d^3+5 c^4 C\right )\right )}{3 d^2 f \left (c^2+d^2\right )^2 \sqrt {c+d \tan (e+f x)}}-\frac {b^{3/2} (-5 a C d-2 b B d+5 b c C) \text {arctanh}\left (\frac {\sqrt {d} \sqrt {a+b \tan (e+f x)}}{\sqrt {b} \sqrt {c+d \tan (e+f x)}}\right )}{d^{7/2} f} \]
[In]
[Out]
Rule 65
Rule 95
Rule 212
Rule 214
Rule 223
Rule 3726
Rule 3728
Rule 3736
Rule 6857
Rubi steps \begin{align*} \text {integral}& = -\frac {2 \left (c^2 C-B c d+A d^2\right ) (a+b \tan (e+f x))^{5/2}}{3 d \left (c^2+d^2\right ) f (c+d \tan (e+f x))^{3/2}}+\frac {2 \int \frac {(a+b \tan (e+f x))^{3/2} \left (\frac {1}{2} (A d (3 a c+5 b d)+(5 b c-3 a d) (c C-B d))+\frac {3}{2} d ((A-C) (b c-a d)+B (a c+b d)) \tan (e+f x)+\frac {1}{2} b \left (5 c^2 C-2 B c d+(2 A+3 C) d^2\right ) \tan ^2(e+f x)\right )}{(c+d \tan (e+f x))^{3/2}} \, dx}{3 d \left (c^2+d^2\right )} \\ & = -\frac {2 \left (c^2 C-B c d+A d^2\right ) (a+b \tan (e+f x))^{5/2}}{3 d \left (c^2+d^2\right ) f (c+d \tan (e+f x))^{3/2}}-\frac {2 \left (b \left (5 c^4 C-2 B c^3 d-c^2 (A-11 C) d^2-8 B c d^3+5 A d^4\right )+3 a d^2 \left (2 c (A-C) d-B \left (c^2-d^2\right )\right )\right ) (a+b \tan (e+f x))^{3/2}}{3 d^2 \left (c^2+d^2\right )^2 f \sqrt {c+d \tan (e+f x)}}+\frac {4 \int \frac {\sqrt {a+b \tan (e+f x)} \left (\frac {1}{4} \left (d (a c+3 b d) \left (3 a d (A c-c C+B d)+5 b \left (c^2 C-B c d+A d^2\right )\right )-(3 b c-a d) \left (3 a d^2 (B c-(A-C) d)-b \left (5 c^3 C-2 B c^2 d-c (A-6 C) d^2-3 B d^3\right )\right )\right )+\frac {3}{4} d^2 ((a c+b d) ((A-C) (b c-a d)+B (a c+b d))-(b c-a d) (b B c-b (A-C) d-a (A c-c C+B d))) \tan (e+f x)+\frac {3}{4} b \left (b \left (5 c^4 C-2 B c^3 d+10 c^2 C d^2-6 B c d^3+(4 A+C) d^4\right )+2 a d^2 \left (2 c (A-C) d-B \left (c^2-d^2\right )\right )\right ) \tan ^2(e+f x)\right )}{\sqrt {c+d \tan (e+f x)}} \, dx}{3 d^2 \left (c^2+d^2\right )^2} \\ & = -\frac {2 \left (c^2 C-B c d+A d^2\right ) (a+b \tan (e+f x))^{5/2}}{3 d \left (c^2+d^2\right ) f (c+d \tan (e+f x))^{3/2}}-\frac {2 \left (b \left (5 c^4 C-2 B c^3 d-c^2 (A-11 C) d^2-8 B c d^3+5 A d^4\right )+3 a d^2 \left (2 c (A-C) d-B \left (c^2-d^2\right )\right )\right ) (a+b \tan (e+f x))^{3/2}}{3 d^2 \left (c^2+d^2\right )^2 f \sqrt {c+d \tan (e+f x)}}+\frac {b \left (b \left (5 c^4 C-2 B c^3 d+10 c^2 C d^2-6 B c d^3+(4 A+C) d^4\right )+2 a d^2 \left (2 c (A-C) d-B \left (c^2-d^2\right )\right )\right ) \sqrt {a+b \tan (e+f x)} \sqrt {c+d \tan (e+f x)}}{d^3 \left (c^2+d^2\right )^2 f}+\frac {4 \int \frac {\frac {3}{8} \left (a b^2 d \left (5 c^4 C-2 c^2 (3 A-8 C) d^2-12 B c d^3+(6 A-C) d^4\right )-b^3 c \left (5 c^4 C-2 B c^3 d+10 c^2 C d^2-6 B c d^3+(4 A+C) d^4\right )-2 a^3 d^3 \left (c^2 C-2 B c d-C d^2-A \left (c^2-d^2\right )\right )+6 a^2 b d^3 \left (2 c (A-C) d-B \left (c^2-d^2\right )\right )\right )-\frac {3}{4} d^3 \left (3 a^2 b \left (c^2 C-2 B c d-C d^2-A \left (c^2-d^2\right )\right )-b^3 \left (c^2 C-2 B c d-C d^2-A \left (c^2-d^2\right )\right )+a^3 \left (2 c (A-C) d-B \left (c^2-d^2\right )\right )-3 a b^2 \left (2 c (A-C) d-B \left (c^2-d^2\right )\right )\right ) \tan (e+f x)-\frac {3}{8} b^2 (5 b c C-2 b B d-5 a C d) \left (c^2+d^2\right )^2 \tan ^2(e+f x)}{\sqrt {a+b \tan (e+f x)} \sqrt {c+d \tan (e+f x)}} \, dx}{3 d^3 \left (c^2+d^2\right )^2} \\ & = -\frac {2 \left (c^2 C-B c d+A d^2\right ) (a+b \tan (e+f x))^{5/2}}{3 d \left (c^2+d^2\right ) f (c+d \tan (e+f x))^{3/2}}-\frac {2 \left (b \left (5 c^4 C-2 B c^3 d-c^2 (A-11 C) d^2-8 B c d^3+5 A d^4\right )+3 a d^2 \left (2 c (A-C) d-B \left (c^2-d^2\right )\right )\right ) (a+b \tan (e+f x))^{3/2}}{3 d^2 \left (c^2+d^2\right )^2 f \sqrt {c+d \tan (e+f x)}}+\frac {b \left (b \left (5 c^4 C-2 B c^3 d+10 c^2 C d^2-6 B c d^3+(4 A+C) d^4\right )+2 a d^2 \left (2 c (A-C) d-B \left (c^2-d^2\right )\right )\right ) \sqrt {a+b \tan (e+f x)} \sqrt {c+d \tan (e+f x)}}{d^3 \left (c^2+d^2\right )^2 f}+\frac {4 \text {Subst}\left (\int \frac {\frac {3}{8} \left (a b^2 d \left (5 c^4 C-2 c^2 (3 A-8 C) d^2-12 B c d^3+(6 A-C) d^4\right )-b^3 c \left (5 c^4 C-2 B c^3 d+10 c^2 C d^2-6 B c d^3+(4 A+C) d^4\right )-2 a^3 d^3 \left (c^2 C-2 B c d-C d^2-A \left (c^2-d^2\right )\right )+6 a^2 b d^3 \left (2 c (A-C) d-B \left (c^2-d^2\right )\right )\right )-\frac {3}{4} d^3 \left (3 a^2 b \left (c^2 C-2 B c d-C d^2-A \left (c^2-d^2\right )\right )-b^3 \left (c^2 C-2 B c d-C d^2-A \left (c^2-d^2\right )\right )+a^3 \left (2 c (A-C) d-B \left (c^2-d^2\right )\right )-3 a b^2 \left (2 c (A-C) d-B \left (c^2-d^2\right )\right )\right ) x-\frac {3}{8} b^2 (5 b c C-2 b B d-5 a C d) \left (c^2+d^2\right )^2 x^2}{\sqrt {a+b x} \sqrt {c+d x} \left (1+x^2\right )} \, dx,x,\tan (e+f x)\right )}{3 d^3 \left (c^2+d^2\right )^2 f} \\ & = -\frac {2 \left (c^2 C-B c d+A d^2\right ) (a+b \tan (e+f x))^{5/2}}{3 d \left (c^2+d^2\right ) f (c+d \tan (e+f x))^{3/2}}-\frac {2 \left (b \left (5 c^4 C-2 B c^3 d-c^2 (A-11 C) d^2-8 B c d^3+5 A d^4\right )+3 a d^2 \left (2 c (A-C) d-B \left (c^2-d^2\right )\right )\right ) (a+b \tan (e+f x))^{3/2}}{3 d^2 \left (c^2+d^2\right )^2 f \sqrt {c+d \tan (e+f x)}}+\frac {b \left (b \left (5 c^4 C-2 B c^3 d+10 c^2 C d^2-6 B c d^3+(4 A+C) d^4\right )+2 a d^2 \left (2 c (A-C) d-B \left (c^2-d^2\right )\right )\right ) \sqrt {a+b \tan (e+f x)} \sqrt {c+d \tan (e+f x)}}{d^3 \left (c^2+d^2\right )^2 f}+\frac {4 \text {Subst}\left (\int \left (-\frac {3 b^2 (5 b c C-2 b B d-5 a C d) \left (c^2+d^2\right )^2}{8 \sqrt {a+b x} \sqrt {c+d x}}+\frac {3 \left (-d^3 \left (a^3 \left (c^2 C-2 B c d-C d^2-A \left (c^2-d^2\right )\right )-3 a b^2 \left (c^2 C-2 B c d-C d^2-A \left (c^2-d^2\right )\right )-3 a^2 b \left (2 c (A-C) d-B \left (c^2-d^2\right )\right )+b^3 \left (2 c (A-C) d-B \left (c^2-d^2\right )\right )\right )-d^3 \left (3 a^2 b \left (c^2 C-2 B c d-C d^2-A \left (c^2-d^2\right )\right )-b^3 \left (c^2 C-2 B c d-C d^2-A \left (c^2-d^2\right )\right )+a^3 \left (2 c (A-C) d-B \left (c^2-d^2\right )\right )-3 a b^2 \left (2 c (A-C) d-B \left (c^2-d^2\right )\right )\right ) x\right )}{4 \sqrt {a+b x} \sqrt {c+d x} \left (1+x^2\right )}\right ) \, dx,x,\tan (e+f x)\right )}{3 d^3 \left (c^2+d^2\right )^2 f} \\ & = -\frac {2 \left (c^2 C-B c d+A d^2\right ) (a+b \tan (e+f x))^{5/2}}{3 d \left (c^2+d^2\right ) f (c+d \tan (e+f x))^{3/2}}-\frac {2 \left (b \left (5 c^4 C-2 B c^3 d-c^2 (A-11 C) d^2-8 B c d^3+5 A d^4\right )+3 a d^2 \left (2 c (A-C) d-B \left (c^2-d^2\right )\right )\right ) (a+b \tan (e+f x))^{3/2}}{3 d^2 \left (c^2+d^2\right )^2 f \sqrt {c+d \tan (e+f x)}}+\frac {b \left (b \left (5 c^4 C-2 B c^3 d+10 c^2 C d^2-6 B c d^3+(4 A+C) d^4\right )+2 a d^2 \left (2 c (A-C) d-B \left (c^2-d^2\right )\right )\right ) \sqrt {a+b \tan (e+f x)} \sqrt {c+d \tan (e+f x)}}{d^3 \left (c^2+d^2\right )^2 f}-\frac {\left (b^2 (5 b c C-2 b B d-5 a C d)\right ) \text {Subst}\left (\int \frac {1}{\sqrt {a+b x} \sqrt {c+d x}} \, dx,x,\tan (e+f x)\right )}{2 d^3 f}+\frac {\text {Subst}\left (\int \frac {-d^3 \left (a^3 \left (c^2 C-2 B c d-C d^2-A \left (c^2-d^2\right )\right )-3 a b^2 \left (c^2 C-2 B c d-C d^2-A \left (c^2-d^2\right )\right )-3 a^2 b \left (2 c (A-C) d-B \left (c^2-d^2\right )\right )+b^3 \left (2 c (A-C) d-B \left (c^2-d^2\right )\right )\right )-d^3 \left (3 a^2 b \left (c^2 C-2 B c d-C d^2-A \left (c^2-d^2\right )\right )-b^3 \left (c^2 C-2 B c d-C d^2-A \left (c^2-d^2\right )\right )+a^3 \left (2 c (A-C) d-B \left (c^2-d^2\right )\right )-3 a b^2 \left (2 c (A-C) d-B \left (c^2-d^2\right )\right )\right ) x}{\sqrt {a+b x} \sqrt {c+d x} \left (1+x^2\right )} \, dx,x,\tan (e+f x)\right )}{d^3 \left (c^2+d^2\right )^2 f} \\ & = -\frac {2 \left (c^2 C-B c d+A d^2\right ) (a+b \tan (e+f x))^{5/2}}{3 d \left (c^2+d^2\right ) f (c+d \tan (e+f x))^{3/2}}-\frac {2 \left (b \left (5 c^4 C-2 B c^3 d-c^2 (A-11 C) d^2-8 B c d^3+5 A d^4\right )+3 a d^2 \left (2 c (A-C) d-B \left (c^2-d^2\right )\right )\right ) (a+b \tan (e+f x))^{3/2}}{3 d^2 \left (c^2+d^2\right )^2 f \sqrt {c+d \tan (e+f x)}}+\frac {b \left (b \left (5 c^4 C-2 B c^3 d+10 c^2 C d^2-6 B c d^3+(4 A+C) d^4\right )+2 a d^2 \left (2 c (A-C) d-B \left (c^2-d^2\right )\right )\right ) \sqrt {a+b \tan (e+f x)} \sqrt {c+d \tan (e+f x)}}{d^3 \left (c^2+d^2\right )^2 f}-\frac {(b (5 b c C-2 b B d-5 a C d)) \text {Subst}\left (\int \frac {1}{\sqrt {c-\frac {a d}{b}+\frac {d x^2}{b}}} \, dx,x,\sqrt {a+b \tan (e+f x)}\right )}{d^3 f}+\frac {\text {Subst}\left (\int \left (\frac {d^3 \left (3 a^2 b \left (c^2 C-2 B c d-C d^2-A \left (c^2-d^2\right )\right )-b^3 \left (c^2 C-2 B c d-C d^2-A \left (c^2-d^2\right )\right )+a^3 \left (2 c (A-C) d-B \left (c^2-d^2\right )\right )-3 a b^2 \left (2 c (A-C) d-B \left (c^2-d^2\right )\right )\right )-i d^3 \left (a^3 \left (c^2 C-2 B c d-C d^2-A \left (c^2-d^2\right )\right )-3 a b^2 \left (c^2 C-2 B c d-C d^2-A \left (c^2-d^2\right )\right )-3 a^2 b \left (2 c (A-C) d-B \left (c^2-d^2\right )\right )+b^3 \left (2 c (A-C) d-B \left (c^2-d^2\right )\right )\right )}{2 (i-x) \sqrt {a+b x} \sqrt {c+d x}}+\frac {-d^3 \left (3 a^2 b \left (c^2 C-2 B c d-C d^2-A \left (c^2-d^2\right )\right )-b^3 \left (c^2 C-2 B c d-C d^2-A \left (c^2-d^2\right )\right )+a^3 \left (2 c (A-C) d-B \left (c^2-d^2\right )\right )-3 a b^2 \left (2 c (A-C) d-B \left (c^2-d^2\right )\right )\right )-i d^3 \left (a^3 \left (c^2 C-2 B c d-C d^2-A \left (c^2-d^2\right )\right )-3 a b^2 \left (c^2 C-2 B c d-C d^2-A \left (c^2-d^2\right )\right )-3 a^2 b \left (2 c (A-C) d-B \left (c^2-d^2\right )\right )+b^3 \left (2 c (A-C) d-B \left (c^2-d^2\right )\right )\right )}{2 (i+x) \sqrt {a+b x} \sqrt {c+d x}}\right ) \, dx,x,\tan (e+f x)\right )}{d^3 \left (c^2+d^2\right )^2 f} \\ & = -\frac {2 \left (c^2 C-B c d+A d^2\right ) (a+b \tan (e+f x))^{5/2}}{3 d \left (c^2+d^2\right ) f (c+d \tan (e+f x))^{3/2}}-\frac {2 \left (b \left (5 c^4 C-2 B c^3 d-c^2 (A-11 C) d^2-8 B c d^3+5 A d^4\right )+3 a d^2 \left (2 c (A-C) d-B \left (c^2-d^2\right )\right )\right ) (a+b \tan (e+f x))^{3/2}}{3 d^2 \left (c^2+d^2\right )^2 f \sqrt {c+d \tan (e+f x)}}+\frac {b \left (b \left (5 c^4 C-2 B c^3 d+10 c^2 C d^2-6 B c d^3+(4 A+C) d^4\right )+2 a d^2 \left (2 c (A-C) d-B \left (c^2-d^2\right )\right )\right ) \sqrt {a+b \tan (e+f x)} \sqrt {c+d \tan (e+f x)}}{d^3 \left (c^2+d^2\right )^2 f}-\frac {\left ((i a+b)^3 (A-i B-C)\right ) \text {Subst}\left (\int \frac {1}{(i+x) \sqrt {a+b x} \sqrt {c+d x}} \, dx,x,\tan (e+f x)\right )}{2 (c-i d)^2 f}-\frac {(b (5 b c C-2 b B d-5 a C d)) \text {Subst}\left (\int \frac {1}{1-\frac {d x^2}{b}} \, dx,x,\frac {\sqrt {a+b \tan (e+f x)}}{\sqrt {c+d \tan (e+f x)}}\right )}{d^3 f}+\frac {\left (d^3 \left (3 a^2 b \left (c^2 C-2 B c d-C d^2-A \left (c^2-d^2\right )\right )-b^3 \left (c^2 C-2 B c d-C d^2-A \left (c^2-d^2\right )\right )+a^3 \left (2 c (A-C) d-B \left (c^2-d^2\right )\right )-3 a b^2 \left (2 c (A-C) d-B \left (c^2-d^2\right )\right )\right )-i d^3 \left (a^3 \left (c^2 C-2 B c d-C d^2-A \left (c^2-d^2\right )\right )-3 a b^2 \left (c^2 C-2 B c d-C d^2-A \left (c^2-d^2\right )\right )-3 a^2 b \left (2 c (A-C) d-B \left (c^2-d^2\right )\right )+b^3 \left (2 c (A-C) d-B \left (c^2-d^2\right )\right )\right )\right ) \text {Subst}\left (\int \frac {1}{(i-x) \sqrt {a+b x} \sqrt {c+d x}} \, dx,x,\tan (e+f x)\right )}{2 d^3 \left (c^2+d^2\right )^2 f} \\ & = -\frac {b^{3/2} (5 b c C-2 b B d-5 a C d) \text {arctanh}\left (\frac {\sqrt {d} \sqrt {a+b \tan (e+f x)}}{\sqrt {b} \sqrt {c+d \tan (e+f x)}}\right )}{d^{7/2} f}-\frac {2 \left (c^2 C-B c d+A d^2\right ) (a+b \tan (e+f x))^{5/2}}{3 d \left (c^2+d^2\right ) f (c+d \tan (e+f x))^{3/2}}-\frac {2 \left (b \left (5 c^4 C-2 B c^3 d-c^2 (A-11 C) d^2-8 B c d^3+5 A d^4\right )+3 a d^2 \left (2 c (A-C) d-B \left (c^2-d^2\right )\right )\right ) (a+b \tan (e+f x))^{3/2}}{3 d^2 \left (c^2+d^2\right )^2 f \sqrt {c+d \tan (e+f x)}}+\frac {b \left (b \left (5 c^4 C-2 B c^3 d+10 c^2 C d^2-6 B c d^3+(4 A+C) d^4\right )+2 a d^2 \left (2 c (A-C) d-B \left (c^2-d^2\right )\right )\right ) \sqrt {a+b \tan (e+f x)} \sqrt {c+d \tan (e+f x)}}{d^3 \left (c^2+d^2\right )^2 f}-\frac {\left ((i a+b)^3 (A-i B-C)\right ) \text {Subst}\left (\int \frac {1}{-a+i b-(-c+i d) x^2} \, dx,x,\frac {\sqrt {a+b \tan (e+f x)}}{\sqrt {c+d \tan (e+f x)}}\right )}{(c-i d)^2 f}+\frac {\left (d^3 \left (3 a^2 b \left (c^2 C-2 B c d-C d^2-A \left (c^2-d^2\right )\right )-b^3 \left (c^2 C-2 B c d-C d^2-A \left (c^2-d^2\right )\right )+a^3 \left (2 c (A-C) d-B \left (c^2-d^2\right )\right )-3 a b^2 \left (2 c (A-C) d-B \left (c^2-d^2\right )\right )\right )-i d^3 \left (a^3 \left (c^2 C-2 B c d-C d^2-A \left (c^2-d^2\right )\right )-3 a b^2 \left (c^2 C-2 B c d-C d^2-A \left (c^2-d^2\right )\right )-3 a^2 b \left (2 c (A-C) d-B \left (c^2-d^2\right )\right )+b^3 \left (2 c (A-C) d-B \left (c^2-d^2\right )\right )\right )\right ) \text {Subst}\left (\int \frac {1}{a+i b-(c+i d) x^2} \, dx,x,\frac {\sqrt {a+b \tan (e+f x)}}{\sqrt {c+d \tan (e+f x)}}\right )}{d^3 \left (c^2+d^2\right )^2 f} \\ & = -\frac {(a-i b)^{5/2} (B+i (A-C)) \text {arctanh}\left (\frac {\sqrt {c-i d} \sqrt {a+b \tan (e+f x)}}{\sqrt {a-i b} \sqrt {c+d \tan (e+f x)}}\right )}{(c-i d)^{5/2} f}-\frac {(a+i b)^{5/2} (B-i (A-C)) \text {arctanh}\left (\frac {\sqrt {c+i d} \sqrt {a+b \tan (e+f x)}}{\sqrt {a+i b} \sqrt {c+d \tan (e+f x)}}\right )}{(c+i d)^{5/2} f}-\frac {b^{3/2} (5 b c C-2 b B d-5 a C d) \text {arctanh}\left (\frac {\sqrt {d} \sqrt {a+b \tan (e+f x)}}{\sqrt {b} \sqrt {c+d \tan (e+f x)}}\right )}{d^{7/2} f}-\frac {2 \left (c^2 C-B c d+A d^2\right ) (a+b \tan (e+f x))^{5/2}}{3 d \left (c^2+d^2\right ) f (c+d \tan (e+f x))^{3/2}}-\frac {2 \left (b \left (5 c^4 C-2 B c^3 d-c^2 (A-11 C) d^2-8 B c d^3+5 A d^4\right )+3 a d^2 \left (2 c (A-C) d-B \left (c^2-d^2\right )\right )\right ) (a+b \tan (e+f x))^{3/2}}{3 d^2 \left (c^2+d^2\right )^2 f \sqrt {c+d \tan (e+f x)}}+\frac {b \left (b \left (5 c^4 C-2 B c^3 d+10 c^2 C d^2-6 B c d^3+(4 A+C) d^4\right )+2 a d^2 \left (2 c (A-C) d-B \left (c^2-d^2\right )\right )\right ) \sqrt {a+b \tan (e+f x)} \sqrt {c+d \tan (e+f x)}}{d^3 \left (c^2+d^2\right )^2 f} \\ \end{align*}
Both result and optimal contain complex but leaf count is larger than twice the leaf count of optimal. \(2650\) vs. \(2(549)=1098\).
Time = 9.79 (sec) , antiderivative size = 2650, normalized size of antiderivative = 4.83 \[ \int \frac {(a+b \tan (e+f x))^{5/2} \left (A+B \tan (e+f x)+C \tan ^2(e+f x)\right )}{(c+d \tan (e+f x))^{5/2}} \, dx=\text {Result too large to show} \]
[In]
[Out]
Timed out.
\[\int \frac {\left (a +b \tan \left (f x +e \right )\right )^{\frac {5}{2}} \left (A +B \tan \left (f x +e \right )+C \tan \left (f x +e \right )^{2}\right )}{\left (c +d \tan \left (f x +e \right )\right )^{\frac {5}{2}}}d x\]
[In]
[Out]
Timed out. \[ \int \frac {(a+b \tan (e+f x))^{5/2} \left (A+B \tan (e+f x)+C \tan ^2(e+f x)\right )}{(c+d \tan (e+f x))^{5/2}} \, dx=\text {Timed out} \]
[In]
[Out]
\[ \int \frac {(a+b \tan (e+f x))^{5/2} \left (A+B \tan (e+f x)+C \tan ^2(e+f x)\right )}{(c+d \tan (e+f x))^{5/2}} \, dx=\int \frac {\left (a + b \tan {\left (e + f x \right )}\right )^{\frac {5}{2}} \left (A + B \tan {\left (e + f x \right )} + C \tan ^{2}{\left (e + f x \right )}\right )}{\left (c + d \tan {\left (e + f x \right )}\right )^{\frac {5}{2}}}\, dx \]
[In]
[Out]
Timed out. \[ \int \frac {(a+b \tan (e+f x))^{5/2} \left (A+B \tan (e+f x)+C \tan ^2(e+f x)\right )}{(c+d \tan (e+f x))^{5/2}} \, dx=\text {Timed out} \]
[In]
[Out]
Timed out. \[ \int \frac {(a+b \tan (e+f x))^{5/2} \left (A+B \tan (e+f x)+C \tan ^2(e+f x)\right )}{(c+d \tan (e+f x))^{5/2}} \, dx=\text {Timed out} \]
[In]
[Out]
Timed out. \[ \int \frac {(a+b \tan (e+f x))^{5/2} \left (A+B \tan (e+f x)+C \tan ^2(e+f x)\right )}{(c+d \tan (e+f x))^{5/2}} \, dx=\int \frac {{\left (a+b\,\mathrm {tan}\left (e+f\,x\right )\right )}^{5/2}\,\left (C\,{\mathrm {tan}\left (e+f\,x\right )}^2+B\,\mathrm {tan}\left (e+f\,x\right )+A\right )}{{\left (c+d\,\mathrm {tan}\left (e+f\,x\right )\right )}^{5/2}} \,d x \]
[In]
[Out]